/*  1:   */ package org.intellij.lang.regexp.psi.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.tree.TokenSet;
import org.intellij.lang.regexp.RegExpElementTypes;
import org.intellij.lang.regexp.psi.RegExpCharRange;
import org.intellij.lang.regexp.psi.RegExpElementVisitor;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */
/* 12:   */ 
/* 13:   */ public class RegExpCharRangeImpl
/* 14:   */   extends RegExpElementImpl
/* 15:   */   implements RegExpCharRange
/* 16:   */ {
/* 17:28 */   private static final TokenSet e = TokenSet.create(new IElementType[] { RegExpElementTypes.CHAR, RegExpElementTypes.SIMPLE_CLASS });
/* 18:   */   
/* 19:   */   public RegExpCharRangeImpl(ASTNode paramASTNode)
/* 20:   */   {
/* 21:31 */     super(paramASTNode);
/* 22:   */   }
/* 23:   */   
/* 24:   */   @NotNull
/* 25:   */   public RegExpCharRange.Endpoint getFrom()
/* 26:   */   {
/* 27:36 */     RegExpCharRange.Endpoint tmp8_5 = ((RegExpCharRange.Endpoint)a(0));
/* 28:36 */     if (tmp8_5 == null) {
/* 29:36 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpCharRangeImpl", "getFrom" }));
/* 30:   */     }
/* 31:36 */     return tmp8_5;
/* 32:   */   }
/* 33:   */   
/* 34:   */   @NotNull
/* 35:   */   public RegExpCharRange.Endpoint getTo()
/* 36:   */   {
/* 37:40 */     RegExpCharRange.Endpoint tmp8_5 = ((RegExpCharRange.Endpoint)a(1));
/* 38:40 */     if (tmp8_5 == null) {
/* 39:40 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpCharRangeImpl", "getTo" }));
/* 40:   */     }
/* 41:40 */     return tmp8_5;
/* 42:   */   }
/* 43:   */   
/* 44:   */   private PsiElement a(int paramInt)
/* 45:   */   {
/* 46:44 */     ASTNode[] arrayOfASTNode = getNode().getChildren(e);
/* 47:45 */     assert (arrayOfASTNode.length == 2);
/* 48:46 */     return arrayOfASTNode[paramInt].getPsi();
/* 49:   */   }
/* 50:   */   
/* 51:   */   public void accept(RegExpElementVisitor paramRegExpElementVisitor)
/* 52:   */   {
/* 53:50 */     paramRegExpElementVisitor.visitRegExpCharRange(this);
/* 54:   */   }
/* 55:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.psi.impl.RegExpCharRangeImpl

 * JD-Core Version:    0.7.0.1

 */